<?php

?>

<!--批量更改仔猪-->
<form method="post" action="batchupdate">
    <input type="hidden" value="<?= implode(',',$ids) ?>" name="ids">
    <div class="form-group">
        <label for="date">疫苗时间</label>
        <input type="date" name="date" class="form-control" id="date" placeholder="疫苗时间" value="<?= date('Y-m-d') ?>">
    </div>
    <div class="form-group">
        <label for="remark">疫苗名称</label>
        <select name="vaccineid" id="" class="form-control">
            <?php foreach ($vaccset as $key => $row){ ?>
                <option value="<?=$row['id']?>"><?=$row['vaccinename']?></option>
            <?php } ?>
        </select>
<!--        <input type="text" name="vaccinename" class="form-control" id="vaccinename" placeholder="疫苗名称">-->
    </div>

    <div class="form-group">
        <label for="remark">备注</label>
        <input type="text" name="remark" class="form-control" id="remark" placeholder="备注">
    </div>
    <input type="hidden" name="_csrf" value="<?=Yii::$app->request->csrfToken; ?>">
    <button type="submit" class="btn btn-success">确认</button>
</form>
